public class Application {
    public static void main(String[] args) {
        
        Simulator simulator = new Simulator();
        
      
        Animal dog = new dog();
        Animal cat = new cat();
        
        
        simulator.playSound(dog);
        
       
        simulator.playSound(cat);
    }
}

